<template>
	<view>
		<view class="title">
			<view>--</view>
			<slot>
				<view class="name">{{title}}</view>
			</slot>
			<view>--</view>
		</view>
	</view>
</template>

<script>
	/**
	 * @description: 标题样式
	 * @property {string} title 标题
	 */
	export default {
		props: {
			title: {
				type: String,
				default: ""
			}
		}
	}
</script>

<style lang="scss" scoped>
	.title {
		font-weight: bold;
		display: flex;
		justify-content: center;
		margin: 20rpx 0;
	}
</style>